<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>
        {% block title %}freeBouting{% endblock %}
    </title>
        <link type="text/css" href="{{STATIC_URL}}css/ui-lightness/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
                    <script src="{{STATIC_URL}}js/jquery-1.5.1.min.js"></script>
                    <script src="{{STATIC_URL}}js/jquery-ui-1.8.13.custom.min.js"></script>
        <script type="text/javascript">
      // when passed a function, jQuery execs code when DOM Ready
      $(function() {
            {% block jquery %}
            {% endblock jquery %}
          });
        </script>
        <style type="text/css">
            .required {font-weight:bold;}
            .error{color:red;}
        </style>
</head>
<body>
    <div id="sidebar"> {% block sidebar %} {% endblock %} </div>
    <div id="container">
        <div id="menu">
            {% block nav-global %}
                <!-- MENU -->
                <h3 id="thing2">Welcome to freeBouting.com!</h3>
                
                {% if user != null and not user.is_anonymous %}
                    user: {{user.username}}
                    <a href="/bouting/signOut/">Sign Out</a>
                {% endif %}
                
                {% if user.is_anonymous %}
                    <a href="/bouting/signUp/">Sign Up</a>
                    <form action="/bouting/signIn/" method="post">
                        {% csrf_token %}
                        Username:<input type="text" name="username" id="username"></input>
                        Password:<input type="password" name="password" id="password"></input>
                        <input type="submit" value="Submit" />
                    </form>
                {% endif %}
                
                <br>
                <a href="/bouting/">Home</a>
                
                <br>
                {% if user.is_staff %}
                    <!--<a href="{% url admin:index %}">Admin</a>-->
                    <!--<a href="{% url admin:bouting_club_add %}">Add post</a>-->
                {% endif %}
            


            {% endblock %}
        </div>

        <div id="content">
            {% block content %}{% endblock %}
        </div>
    </div>

</body>
</html>